package com.hmi.unity;

import android.util.Log;

import com.blankj.utilcode.util.SPUtils;
import com.hmi.simulatedrive.utils.Constant;

public class UnityRenderSdk {
    public static IUnityProxy unityProxy;
    public static void onUnityStart(IUnityProxy proxy){
        unityProxy=proxy;
        Log.d("HMI", "onUnityStart: ");
//        proxy.setSubEndpoint("tcp://127.0.0.1:8943");
        proxy.setSubEndpoint("tcp://"+ SPUtils.getInstance().getString(Constant.INSTANCE.getSETTING_IP(), Constant.INSTANCE.getDEFAULT_SIM_IP())
                +":"+SPUtils.getInstance().getString(Constant.INSTANCE.getSETTING_UNITY_PORT(), Constant.INSTANCE.getDEFAULT_UNITY_PORT()));
    }
}
